var path = require('path');
var agefFiles = require('./agef/css_config.js').files;

var baseFiles = [
    "thr/jqueryUI/layout-default.css",
    "thr/Spectrum/spectrum.css"
];
baseFiles.prefix ='';

var adf = [
    "adf.css"
];
adf.prefix = '';

function generate(array){
  var result = [];
  array.forEach(function(files){
    var r = [];
    if(files.prefix){
      files.forEach(function(file){
        r.push(path.join(files.prefix, file));
      });
    } else {
      r = files;
    }
    result = result.concat(r);
  });
  return result;
}

exports.files = agefFiles.concat(generate([baseFiles, adf]));
// transformed_baseFiles.concat(transformed_drawd2dFiles).concat(transformed_gefFiles);
